﻿namespace BloggerBackup
{
    using BloggerBackup.My;
    using log4net;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using Microsoft.VisualBasic.FileIO;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.Collections.ObjectModel;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Drawing;
    using System.IO;
    using System.Runtime.CompilerServices;
    using System.Text;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class PathBuilderForm : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        private string _BackupPath;
        private AllSaveNameOptions _BaseSaveOptions;
        private string _BlogTitle;
        [AccessedThroughProperty("Cancel_Button")]
        private Button _Cancel_Button;
        [AccessedThroughProperty("ColumnHeader4")]
        private ColumnHeader _ColumnHeader4;
        [AccessedThroughProperty("ColumnHeader5")]
        private ColumnHeader _ColumnHeader5;
        [AccessedThroughProperty("ExampleTextBox")]
        private TextBox _ExampleTextBox;
        [AccessedThroughProperty("FolderAddButton")]
        private Button _FolderAddButton;
        [AccessedThroughProperty("FolderMoveDownButton")]
        private Button _FolderMoveDownButton;
        [AccessedThroughProperty("FolderMoveUpButton")]
        private Button _FolderMoveUpButton;
        [AccessedThroughProperty("FolderOptionsListView")]
        private ListView _FolderOptionsListView;
        [AccessedThroughProperty("FolderRemoveButton")]
        private Button _FolderRemoveButton;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        private ILog _log;
        [AccessedThroughProperty("OK_Button")]
        private Button _OK_Button;
        [AccessedThroughProperty("PostAddButton")]
        private Button _PostAddButton;
        [AccessedThroughProperty("PostMoveDownButton")]
        private Button _PostMoveDownButton;
        [AccessedThroughProperty("PostMoveUpButton")]
        private Button _PostMoveUpButton;
        [AccessedThroughProperty("PostOptionsListView")]
        private ListView _PostOptionsListView;
        [AccessedThroughProperty("PostRemoveButton")]
        private Button _PostRemoveButton;
        [AccessedThroughProperty("TableLayoutPanel1")]
        private TableLayoutPanel _TableLayoutPanel1;
        private IContainer components;

        [DebuggerNonUserCode]
        public PathBuilderForm()
        {
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.InitializeComponent();
        }

        private void AddItems(ListView selectListView, List<NameOption> Options)
        {
            List<NameOption>.Enumerator enumerator;
            try
            {
                enumerator = Options.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    NameOption current = enumerator.Current;
                    selectListView.Items.Add(current.Name).Tag = current;
                }
            }
            finally
            {
                enumerator.Dispose();
            }
        }

        private void Cancel_Button_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (((disposing && (this.components != null)) ? 1 : 0) != 0)
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        private void FolderAddButton_Click(object sender, EventArgs e)
        {
            SelectPathOptionDialog dialog = new SelectPathOptionDialog();
            List<NameOption> selectedOptions = new List<NameOption>();
            if (dialog.ShowDialog(this, SelectPathOptionDialog.ShowOptions.FolderName, this._BaseSaveOptions.FolderNameOptions, selectedOptions) == DialogResult.OK)
            {
                this.AddItems(this.FolderOptionsListView, selectedOptions);
                this.ShowExample();
            }
        }

        private void FolderMoveDownButton_Click(object sender, EventArgs e)
        {
            this.MoveItemDown(this.FolderOptionsListView);
        }

        private void FolderMoveUpButton_Click(object sender, EventArgs e)
        {
            this.MoveItemUp(this.FolderOptionsListView);
        }

        private void FolderOptionsListView_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Delete)
            {
                this.RemoveItem(this.FolderOptionsListView);
            }
        }

        private void FolderRemoveButton_Click(object sender, EventArgs e)
        {
            this.RemoveItem(this.FolderOptionsListView);
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(PathBuilderForm));
            this.TableLayoutPanel1 = new TableLayoutPanel();
            this.OK_Button = new Button();
            this.Cancel_Button = new Button();
            this.PostOptionsListView = new ListView();
            this.ColumnHeader4 = new ColumnHeader();
            this.FolderAddButton = new Button();
            this.FolderMoveUpButton = new Button();
            this.FolderMoveDownButton = new Button();
            this.FolderRemoveButton = new Button();
            this.FolderOptionsListView = new ListView();
            this.ColumnHeader5 = new ColumnHeader();
            this.PostRemoveButton = new Button();
            this.PostMoveDownButton = new Button();
            this.PostMoveUpButton = new Button();
            this.PostAddButton = new Button();
            this.ExampleTextBox = new TextBox();
            this.Label3 = new Label();
            this.GroupBox1 = new GroupBox();
            this.GroupBox2 = new GroupBox();
            this.TableLayoutPanel1.SuspendLayout();
            this.GroupBox1.SuspendLayout();
            this.GroupBox2.SuspendLayout();
            this.SuspendLayout();
            this.TableLayoutPanel1.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
            this.TableLayoutPanel1.ColumnCount = 2;
            this.TableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
            this.TableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
            this.TableLayoutPanel1.Controls.Add(this.OK_Button, 0, 0);
            this.TableLayoutPanel1.Controls.Add(this.Cancel_Button, 1, 0);
            Point point = new Point(510, 0x116);
            this.TableLayoutPanel1.Location = point;
            this.TableLayoutPanel1.Name = "TableLayoutPanel1";
            this.TableLayoutPanel1.RowCount = 1;
            this.TableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
            Size size = new Size(0x92, 0x1d);
            this.TableLayoutPanel1.Size = size;
            this.TableLayoutPanel1.TabIndex = 4;
            this.OK_Button.Anchor = AnchorStyles.None;
            point = new Point(3, 3);
            this.OK_Button.Location = point;
            this.OK_Button.Name = "OK_Button";
            size = new Size(0x43, 0x17);
            this.OK_Button.Size = size;
            this.OK_Button.TabIndex = 0;
            this.OK_Button.Text = "OK";
            this.Cancel_Button.Anchor = AnchorStyles.None;
            this.Cancel_Button.DialogResult = DialogResult.Cancel;
            point = new Point(0x4c, 3);
            this.Cancel_Button.Location = point;
            this.Cancel_Button.Name = "Cancel_Button";
            size = new Size(0x43, 0x17);
            this.Cancel_Button.Size = size;
            this.Cancel_Button.TabIndex = 1;
            this.Cancel_Button.Text = "Cancel";
            this.PostOptionsListView.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.PostOptionsListView.Columns.AddRange(new ColumnHeader[] { this.ColumnHeader4 });
            point = new Point(6, 0x10);
            this.PostOptionsListView.Location = point;
            this.PostOptionsListView.Name = "PostOptionsListView";
            size = new Size(0xd6, 0x72);
            this.PostOptionsListView.Size = size;
            this.PostOptionsListView.TabIndex = 0;
            this.PostOptionsListView.UseCompatibleStateImageBehavior = false;
            this.PostOptionsListView.View = View.List;
            this.ColumnHeader4.Width = 170;
            point = new Point(0xf8, 0x10);
            this.FolderAddButton.Location = point;
            this.FolderAddButton.Name = "FolderAddButton";
            size = new Size(0x4b, 0x18);
            this.FolderAddButton.Size = size;
            this.FolderAddButton.TabIndex = 1;
            this.FolderAddButton.Text = "Add";
            this.FolderAddButton.UseVisualStyleBackColor = true;
            point = new Point(0xf8, 0x2e);
            this.FolderMoveUpButton.Location = point;
            this.FolderMoveUpButton.Name = "FolderMoveUpButton";
            size = new Size(0x4b, 0x18);
            this.FolderMoveUpButton.Size = size;
            this.FolderMoveUpButton.TabIndex = 2;
            this.FolderMoveUpButton.Text = "Move Up";
            this.FolderMoveUpButton.UseVisualStyleBackColor = true;
            point = new Point(0xf8, 0x4c);
            this.FolderMoveDownButton.Location = point;
            this.FolderMoveDownButton.Name = "FolderMoveDownButton";
            size = new Size(0x4b, 0x18);
            this.FolderMoveDownButton.Size = size;
            this.FolderMoveDownButton.TabIndex = 3;
            this.FolderMoveDownButton.Text = "Move Down";
            this.FolderMoveDownButton.UseVisualStyleBackColor = true;
            point = new Point(0xf8, 0x6a);
            this.FolderRemoveButton.Location = point;
            this.FolderRemoveButton.Name = "FolderRemoveButton";
            size = new Size(0x4b, 0x18);
            this.FolderRemoveButton.Size = size;
            this.FolderRemoveButton.TabIndex = 4;
            this.FolderRemoveButton.Text = "Remove";
            this.FolderRemoveButton.UseVisualStyleBackColor = true;
            this.FolderOptionsListView.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.FolderOptionsListView.Columns.AddRange(new ColumnHeader[] { this.ColumnHeader5 });
            point = new Point(11, 0x10);
            this.FolderOptionsListView.Location = point;
            this.FolderOptionsListView.MultiSelect = false;
            this.FolderOptionsListView.Name = "FolderOptionsListView";
            size = new Size(0xe7, 0x72);
            this.FolderOptionsListView.Size = size;
            this.FolderOptionsListView.TabIndex = 0;
            this.FolderOptionsListView.UseCompatibleStateImageBehavior = false;
            this.FolderOptionsListView.View = View.List;
            this.ColumnHeader5.Width = 0x99;
            this.PostRemoveButton.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            point = new Point(0xe1, 0x6a);
            this.PostRemoveButton.Location = point;
            this.PostRemoveButton.Name = "PostRemoveButton";
            size = new Size(0x4b, 0x18);
            this.PostRemoveButton.Size = size;
            this.PostRemoveButton.TabIndex = 4;
            this.PostRemoveButton.Text = "Remove";
            this.PostRemoveButton.UseVisualStyleBackColor = true;
            this.PostMoveDownButton.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            point = new Point(0xe1, 0x4c);
            this.PostMoveDownButton.Location = point;
            this.PostMoveDownButton.Name = "PostMoveDownButton";
            size = new Size(0x4b, 0x18);
            this.PostMoveDownButton.Size = size;
            this.PostMoveDownButton.TabIndex = 3;
            this.PostMoveDownButton.Text = "Move Down";
            this.PostMoveDownButton.UseVisualStyleBackColor = true;
            this.PostMoveUpButton.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            point = new Point(0xe1, 0x2e);
            this.PostMoveUpButton.Location = point;
            this.PostMoveUpButton.Name = "PostMoveUpButton";
            size = new Size(0x4b, 0x18);
            this.PostMoveUpButton.Size = size;
            this.PostMoveUpButton.TabIndex = 2;
            this.PostMoveUpButton.Text = "Move Up";
            this.PostMoveUpButton.UseVisualStyleBackColor = true;
            this.PostAddButton.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            point = new Point(0xe1, 0x10);
            this.PostAddButton.Location = point;
            this.PostAddButton.Name = "PostAddButton";
            size = new Size(0x4b, 0x18);
            this.PostAddButton.Size = size;
            this.PostAddButton.TabIndex = 1;
            this.PostAddButton.Text = "Add";
            this.PostAddButton.UseVisualStyleBackColor = true;
            this.ExampleTextBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            point = new Point(12, 0xa9);
            this.ExampleTextBox.Location = point;
            this.ExampleTextBox.Multiline = true;
            this.ExampleTextBox.Name = "ExampleTextBox";
            this.ExampleTextBox.ScrollBars = ScrollBars.Horizontal;
            size = new Size(0x284, 0x65);
            this.ExampleTextBox.Size = size;
            this.ExampleTextBox.TabIndex = 3;
            this.Label3.AutoSize = true;
            point = new Point(9, 0x99);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x37, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 2;
            this.Label3.Text = "Examples:";
            this.GroupBox1.Controls.Add(this.FolderOptionsListView);
            this.GroupBox1.Controls.Add(this.FolderRemoveButton);
            this.GroupBox1.Controls.Add(this.FolderMoveDownButton);
            this.GroupBox1.Controls.Add(this.FolderMoveUpButton);
            this.GroupBox1.Controls.Add(this.FolderAddButton);
            point = new Point(12, 7);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x14f, 0x8f);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Folder Name Options";
            this.GroupBox2.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.GroupBox2.Controls.Add(this.PostRemoveButton);
            this.GroupBox2.Controls.Add(this.PostMoveDownButton);
            this.GroupBox2.Controls.Add(this.PostMoveUpButton);
            this.GroupBox2.Controls.Add(this.PostAddButton);
            this.GroupBox2.Controls.Add(this.PostOptionsListView);
            point = new Point(0x161, 7);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            size = new Size(0x130, 0x8f);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 1;
            this.GroupBox2.TabStop = false;
            this.GroupBox2.Text = "Post File Name Options";
            this.AcceptButton = this.OK_Button;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.CancelButton = this.Cancel_Button;
            size = new Size(0x298, 0x13f);
            this.ClientSize = size;
            this.Controls.Add(this.GroupBox2);
            this.Controls.Add(this.GroupBox1);
            this.Controls.Add(this.Label3);
            this.Controls.Add(this.ExampleTextBox);
            this.Controls.Add(this.TableLayoutPanel1);
            this.Icon = (Icon) manager.GetObject("$this.Icon");
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "PathBuilderForm";
            this.ShowInTaskbar = false;
            this.StartPosition = FormStartPosition.CenterParent;
            this.Text = "Backup File Naming Options";
            this.TableLayoutPanel1.ResumeLayout(false);
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox2.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        private void MoveItemDown(ListView selectListView)
        {
            if (selectListView.SelectedItems.Count != 0)
            {
                ListViewItem item = selectListView.SelectedItems[0];
                if (item.Index == (selectListView.Items.Count - 1))
                {
                    selectListView.Focus();
                }
                else
                {
                    int index = item.Index;
                    selectListView.Items.Remove(item);
                    selectListView.Items.Insert(index + 1, item);
                    selectListView.Focus();
                    this.ShowExample();
                }
            }
        }

        private void MoveItemUp(ListView selectListView)
        {
            if (selectListView.SelectedItems.Count != 0)
            {
                ListViewItem item = selectListView.SelectedItems[0];
                if (item.Index == 0)
                {
                    selectListView.Focus();
                }
                else
                {
                    int index = item.Index;
                    selectListView.Items.Remove(item);
                    selectListView.Items.Insert(index - 1, item);
                    selectListView.Focus();
                    this.ShowExample();
                }
            }
        }

        private void OK_Button_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void PostAddButton_Click(object sender, EventArgs e)
        {
            SelectPathOptionDialog dialog = new SelectPathOptionDialog();
            List<NameOption> selectedOptions = new List<NameOption>();
            if (dialog.ShowDialog(this, SelectPathOptionDialog.ShowOptions.PostName, this._BaseSaveOptions.PostNameOptions, selectedOptions) == DialogResult.OK)
            {
                this.AddItems(this.PostOptionsListView, selectedOptions);
                this.ShowExample();
            }
        }

        private void PostMoveDownButton_Click(object sender, EventArgs e)
        {
            this.MoveItemDown(this.PostOptionsListView);
        }

        private void PostMoveUpButton_Click(object sender, EventArgs e)
        {
            this.MoveItemUp(this.PostOptionsListView);
        }

        private void PostOptionsListView_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Delete)
            {
                this.RemoveItem(this.PostOptionsListView);
            }
        }

        private void PostRemoveButton_Click(object sender, EventArgs e)
        {
            this.RemoveItem(this.PostOptionsListView);
        }

        private void RemoveItem(ListView selectListView)
        {
            if (selectListView.SelectedItems.Count != 0)
            {
                selectListView.SelectedItems[0].Remove();
                this.ShowExample();
            }
        }

        public DialogResult ShowDialog(IWin32Window owner, AllSaveNameOptions baseSaveOptions, SelectedSaveNameOptions selectedOptions, string blogTitle, string backupPath, ILog log)
        {
            DialogResult result;
            this._log = log;
            this._log.Info("Start ShowDialog");
            this._BaseSaveOptions = baseSaveOptions;
            this._BlogTitle = blogTitle;
            this._BackupPath = backupPath;
            try
            {
                this.AddItems(this.FolderOptionsListView, selectedOptions.FolderNameOptions);
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                Interaction.MsgBox("Error in AddItems,selectedOptions.FolderNameOptions. \r\n\r\n" + exception.Message, MsgBoxStyle.OkOnly, "Error");
                this._log.Error("Error in AddItems,selectedOptions.FolderNameOptions", exception);
                ProjectData.ClearProjectError();
            }
            try
            {
                this.AddItems(this.PostOptionsListView, selectedOptions.PostNameOptions);
            }
            catch (Exception exception4)
            {
                ProjectData.SetProjectError(exception4);
                Exception exception2 = exception4;
                Interaction.MsgBox("Error in AddItems,selectedOptions.PostNameOptions. \r\n\r\n" + exception2.Message, MsgBoxStyle.OkOnly, "Error");
                this._log.Error("Error in AddItems,selectedOptions.PostNameOptions", exception2);
                ProjectData.ClearProjectError();
            }
            try
            {
                this.ShowExample();
            }
            catch (Exception exception5)
            {
                ProjectData.SetProjectError(exception5);
                Exception exception3 = exception5;
                this._log.Error("Error in ShowExample", exception3);
                Interaction.MsgBox("Error in ShowExample. \r\n\r\n" + exception3.Message, MsgBoxStyle.OkOnly, "Error");
                ProjectData.ClearProjectError();
            }
            if (this.ShowDialog(owner) == DialogResult.OK)
            {
                this.UpdateSelectedOptions(selectedOptions);
            }
            this._log.Info("End ShowDialog");
            return result;
        }

        private void ShowExample()
        {
            this._log.Info("Start ShowExample");
            string directory = Path.Combine(MyProject.Application.Info.DirectoryPath, "ExamplePostXML");
            if (!MyProject.Computer.FileSystem.DirectoryExists(directory))
            {
                this._log.Info(directory + " Does not exist, exiting sub");
                this._log.Info("End ShowExample");
            }
            else
            {
                ReadOnlyCollection<string> onlys;
                this.ExampleTextBox.Text = "";
                try
                {
                    onlys = MyProject.Computer.FileSystem.GetFiles(directory, Microsoft.VisualBasic.FileIO.SearchOption.SearchTopLevelOnly, new string[] { "*.xml" });
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    this._log.Error("Error in GetFiles", exception);
                    Interaction.MsgBox("Error in GetFiles. \r\n\r\n" + exception.Message, MsgBoxStyle.OkOnly, "Error");
                    this._log.Info("End ShowExample");
                    ProjectData.ClearProjectError();
                    return;
                    ProjectData.ClearProjectError();
                }
                SelectedSaveNameOptions selectedOptions = new SelectedSaveNameOptions();
                try
                {
                    this.UpdateSelectedOptions(selectedOptions);
                }
                catch (Exception exception3)
                {
                    ProjectData.SetProjectError(exception3);
                    Exception exception2 = exception3;
                    this._log.Error("Error in UpdateSelectedOptions", exception2);
                    Interaction.MsgBox("Error in UpdateSelectedOptions. \r\n\r\n" + exception2.Message, MsgBoxStyle.OkOnly, "Error");
                    ProjectData.ClearProjectError();
                }
                StringBuilder builder = new StringBuilder();
                foreach (string str2 in onlys)
                {
                    FileStream atomXMLStream = new FileStream(str2, FileMode.Open);
                    builder.AppendLine(Path.Combine(selectedOptions.GetPath("Example Blog Title", this._BackupPath, atomXMLStream), selectedOptions.GetPostFileName(atomXMLStream) + ".xml"));
                    atomXMLStream.Close();
                    atomXMLStream.Dispose();
                }
                this.ExampleTextBox.Text = builder.ToString();
                this._log.Info("End ShowExample");
            }
        }

        private void UpdateSelectedOptions(SelectedSaveNameOptions selectedOptions)
        {
            IEnumerator enumerator;
            selectedOptions.FolderNameOptions.Clear();
            try
            {
                enumerator = this.FolderOptionsListView.Items.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    ListViewItem current = (ListViewItem) enumerator.Current;
                    selectedOptions.FolderNameOptions.Add((NameOption) current.Tag);
                }
            }
            finally
            {
                if (enumerator is IDisposable)
                {
                    (enumerator as IDisposable).Dispose();
                }
            }
            selectedOptions.PostNameOptions.Clear();
            if (this.PostOptionsListView.Items.Count > 0)
            {
                IEnumerator enumerator2;
                try
                {
                    enumerator2 = this.PostOptionsListView.Items.GetEnumerator();
                    while (enumerator2.MoveNext())
                    {
                        ListViewItem item2 = (ListViewItem) enumerator2.Current;
                        selectedOptions.PostNameOptions.Add((NameOption) item2.Tag);
                    }
                }
                finally
                {
                    if (enumerator2 is IDisposable)
                    {
                        (enumerator2 as IDisposable).Dispose();
                    }
                }
            }
            else
            {
                selectedOptions.PostNameOptions.Add(this._BaseSaveOptions.PostNameOptions[0]);
            }
        }

        internal virtual Button Cancel_Button
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Cancel_Button;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.Cancel_Button_Click);
                if (this._Cancel_Button != null)
                {
                    this._Cancel_Button.Click -= handler;
                }
                this._Cancel_Button = value;
                if (this._Cancel_Button != null)
                {
                    this._Cancel_Button.Click += handler;
                }
            }
        }

        internal virtual ColumnHeader ColumnHeader4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ColumnHeader4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ColumnHeader4 = value;
            }
        }

        internal virtual ColumnHeader ColumnHeader5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ColumnHeader5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ColumnHeader5 = value;
            }
        }

        internal virtual TextBox ExampleTextBox
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ExampleTextBox;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ExampleTextBox = value;
            }
        }

        internal virtual Button FolderAddButton
        {
            [DebuggerNonUserCode]
            get
            {
                return this._FolderAddButton;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.FolderAddButton_Click);
                if (this._FolderAddButton != null)
                {
                    this._FolderAddButton.Click -= handler;
                }
                this._FolderAddButton = value;
                if (this._FolderAddButton != null)
                {
                    this._FolderAddButton.Click += handler;
                }
            }
        }

        internal virtual Button FolderMoveDownButton
        {
            [DebuggerNonUserCode]
            get
            {
                return this._FolderMoveDownButton;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.FolderMoveDownButton_Click);
                if (this._FolderMoveDownButton != null)
                {
                    this._FolderMoveDownButton.Click -= handler;
                }
                this._FolderMoveDownButton = value;
                if (this._FolderMoveDownButton != null)
                {
                    this._FolderMoveDownButton.Click += handler;
                }
            }
        }

        internal virtual Button FolderMoveUpButton
        {
            [DebuggerNonUserCode]
            get
            {
                return this._FolderMoveUpButton;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.FolderMoveUpButton_Click);
                if (this._FolderMoveUpButton != null)
                {
                    this._FolderMoveUpButton.Click -= handler;
                }
                this._FolderMoveUpButton = value;
                if (this._FolderMoveUpButton != null)
                {
                    this._FolderMoveUpButton.Click += handler;
                }
            }
        }

        internal virtual ListView FolderOptionsListView
        {
            [DebuggerNonUserCode]
            get
            {
                return this._FolderOptionsListView;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                KeyEventHandler handler = new KeyEventHandler(this.FolderOptionsListView_KeyUp);
                if (this._FolderOptionsListView != null)
                {
                    this._FolderOptionsListView.KeyUp -= handler;
                }
                this._FolderOptionsListView = value;
                if (this._FolderOptionsListView != null)
                {
                    this._FolderOptionsListView.KeyUp += handler;
                }
            }
        }

        internal virtual Button FolderRemoveButton
        {
            [DebuggerNonUserCode]
            get
            {
                return this._FolderRemoveButton;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.FolderRemoveButton_Click);
                if (this._FolderRemoveButton != null)
                {
                    this._FolderRemoveButton.Click -= handler;
                }
                this._FolderRemoveButton = value;
                if (this._FolderRemoveButton != null)
                {
                    this._FolderRemoveButton.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Button OK_Button
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OK_Button;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.OK_Button_Click);
                if (this._OK_Button != null)
                {
                    this._OK_Button.Click -= handler;
                }
                this._OK_Button = value;
                if (this._OK_Button != null)
                {
                    this._OK_Button.Click += handler;
                }
            }
        }

        internal virtual Button PostAddButton
        {
            [DebuggerNonUserCode]
            get
            {
                return this._PostAddButton;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.PostAddButton_Click);
                if (this._PostAddButton != null)
                {
                    this._PostAddButton.Click -= handler;
                }
                this._PostAddButton = value;
                if (this._PostAddButton != null)
                {
                    this._PostAddButton.Click += handler;
                }
            }
        }

        internal virtual Button PostMoveDownButton
        {
            [DebuggerNonUserCode]
            get
            {
                return this._PostMoveDownButton;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.PostMoveDownButton_Click);
                if (this._PostMoveDownButton != null)
                {
                    this._PostMoveDownButton.Click -= handler;
                }
                this._PostMoveDownButton = value;
                if (this._PostMoveDownButton != null)
                {
                    this._PostMoveDownButton.Click += handler;
                }
            }
        }

        internal virtual Button PostMoveUpButton
        {
            [DebuggerNonUserCode]
            get
            {
                return this._PostMoveUpButton;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.PostMoveUpButton_Click);
                if (this._PostMoveUpButton != null)
                {
                    this._PostMoveUpButton.Click -= handler;
                }
                this._PostMoveUpButton = value;
                if (this._PostMoveUpButton != null)
                {
                    this._PostMoveUpButton.Click += handler;
                }
            }
        }

        internal virtual ListView PostOptionsListView
        {
            [DebuggerNonUserCode]
            get
            {
                return this._PostOptionsListView;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                KeyEventHandler handler = new KeyEventHandler(this.PostOptionsListView_KeyUp);
                if (this._PostOptionsListView != null)
                {
                    this._PostOptionsListView.KeyUp -= handler;
                }
                this._PostOptionsListView = value;
                if (this._PostOptionsListView != null)
                {
                    this._PostOptionsListView.KeyUp += handler;
                }
            }
        }

        internal virtual Button PostRemoveButton
        {
            [DebuggerNonUserCode]
            get
            {
                return this._PostRemoveButton;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.PostRemoveButton_Click);
                if (this._PostRemoveButton != null)
                {
                    this._PostRemoveButton.Click -= handler;
                }
                this._PostRemoveButton = value;
                if (this._PostRemoveButton != null)
                {
                    this._PostRemoveButton.Click += handler;
                }
            }
        }

        internal virtual TableLayoutPanel TableLayoutPanel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TableLayoutPanel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TableLayoutPanel1 = value;
            }
        }
    }
}

